import Vue from 'vue'
import Router from 'vue-router'
import login from "@/components/login";
import menu from "@/components/menu";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/login'
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/menu',
      name: 'menu',
      component: menu,
      redirect: '/Student',
      children: [
        {
          path: '/Student',
          name: 'Student',
          component: () => import('../views/Student')
        },
        {
          path: '/Person/ModiifyInformation',
          name: 'ModiifyInformation',
          component: () => import('../views/Person/ModiifyInformation')
        },
        {
          path: '/Opus/Management',
          name: 'Management',
          component: () => import('../views/Opus/Management')
        },
        {
          path: '/Opus/Submit',
          name: 'Submit',
          component: () => import('../views/Opus/Submit')
        }
      ]
    }
  ]
})
